/* stylelint-disable no-duplicate-selectors */
:host {
  &.td-markdown::ng-deep {
    a {
      background-color: transparent;
    }

    a[target='_blank'] {
      display: inline-flex;
      align-items: center;
      position: relative;
      padding-right: 16px;

      &::after {
        content: 'open_in_new';
        font-family: var(--mdc-icon-font, 'Material Symbols Outlined');
        padding-left: 2px;
        text-decoration: none;
        position: absolute;
        right: 0;
        top: 1px;
      }
    }

    a:active,
    a:hover {
      outline-width: 0;
    }

    strong {
      font-weight: inherit;
      font-weight: bolder;
    }

    h1 {
      font-size: 2em;
      margin: 0.67em 0;
    }

    img {
      border-style: none;
    }

    svg:not(:root) {
      overflow: hidden;
    }

    code,
    kbd,
    pre {
      font-family: monospace;
      font-size: 1em;
    }

    hr {
      box-sizing: content-box;
      height: 0;
      overflow: visible;
    }

    input {
      font: inherit;
      margin: 0;
    }

    input {
      overflow: visible;
    }

    button:-moz-focusring,
    [type='button']:-moz-focusring,
    [type='reset']:-moz-focusring,
    [type='submit']:-moz-focusring {
      outline: 1px dotted ButtonText;
    }

    [type='checkbox'] {
      box-sizing: border-box;
      padding: 0;
    }

    table {
      border-spacing: 0;
      border-collapse: collapse;
    }

    td,
    th {
      padding: 0;
    }

    * {
      box-sizing: border-box;
    }

    input {
      font: 13px/1.4 Helvetica, arial, nimbussansl, liberationsans, freesans,
        clean, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol';
    }

    a {
      text-decoration: none;
    }

    a:hover,
    a:active {
      text-decoration: underline;
    }

    hr {
      height: 0;
      margin: 15px 0;
      overflow: hidden;
      background: transparent;
      border-bottom-width: 1px;
      border-bottom-style: solid;
    }

    hr::before {
      display: table;
      content: '';
    }

    hr::after {
      display: table;
      clear: both;
      content: '';
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 1.5;
    }

    h1 {
      font-size: 30px;
    }

    h2 {
      font-size: 21px;
    }

    h3 {
      font-size: 16px;
    }

    h4 {
      font-size: 14px;
    }

    h5 {
      font-size: 12px;
    }

    h6 {
      font-size: 11px;
    }

    p {
      margin-top: 0;
      margin-bottom: 10px;
    }

    blockquote {
      margin: 0;
    }

    ul,
    ol {
      padding-left: 0;
      margin-top: 0;
      margin-bottom: 0;
    }

    ol ol,
    ul ol {
      list-style-type: lower-roman;
    }

    ul ul ol,
    ul ol ol,
    ol ul ol,
    ol ol ol {
      list-style-type: lower-alpha;
    }

    dd {
      margin-left: 0;
    }

    code {
      font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
      font-size: 12px;
    }

    pre {
      margin-top: 0;
      margin-bottom: 0;
      font: 12px Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    }

    .pl-0 {
      padding-left: 0 !important;
    }

    .pl-1 {
      padding-left: 3px !important;
    }

    .pl-2 {
      padding-left: 6px !important;
    }

    .pl-3 {
      padding-left: 12px !important;
    }

    .pl-4 {
      padding-left: 24px !important;
    }

    .pl-5 {
      padding-left: 36px !important;
    }

    .pl-6 {
      padding-left: 48px !important;
    }

    .form-select::-ms-expand {
      opacity: 0;
    }

    a:not([href]) {
      color: inherit;
      text-decoration: none;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-top: 1em;
      margin-bottom: 16px;
      font-weight: bold;
      line-height: 1.4;
    }

    h1 .octicon-link,
    h2 .octicon-link,
    h3 .octicon-link,
    h4 .octicon-link,
    h5 .octicon-link,
    h6 .octicon-link {
      color: #000000;
      vertical-align: middle;
      visibility: hidden;
    }

    h1:hover .anchor,
    h2:hover .anchor,
    h3:hover .anchor,
    h4:hover .anchor,
    h5:hover .anchor,
    h6:hover .anchor {
      text-decoration: none;
    }

    h1:hover .anchor .octicon-link,
    h2:hover .anchor .octicon-link,
    h3:hover .anchor .octicon-link,
    h4:hover .anchor .octicon-link,
    h5:hover .anchor .octicon-link,
    h6:hover .anchor .octicon-link {
      visibility: visible;
    }

    h1 {
      padding-bottom: 0.3em;
      font-size: 2.25em;
      line-height: 1.2;
      border-bottom-width: 1px;
      border-bottom-style: solid;
    }

    h1 .anchor {
      line-height: 1;
    }

    h2 {
      padding-bottom: 0.3em;
      font-size: 1.75em;
      line-height: 1.225;
      border-bottom-width: 1px;
      border-bottom-style: solid;
    }

    h2 .anchor {
      line-height: 1;
    }

    h3 {
      font-size: 1.5em;
      line-height: 1.43;
    }

    h3 .anchor {
      line-height: 1.2;
    }

    h4 {
      font-size: 1.25em;
    }

    h4 .anchor {
      line-height: 1.2;
    }

    h5 {
      font-size: 1em;
    }

    h5 .anchor {
      line-height: 1.1;
    }

    h6 {
      font-size: 1em;
    }

    h6 .anchor {
      line-height: 1.1;
    }

    p,
    blockquote,
    ul,
    ol,
    dl,
    table,
    pre {
      margin-top: 0;
      margin-bottom: 16px;
    }

    hr {
      margin: 16px 0;
    }

    ul,
    ol {
      padding-left: 2em;
    }

    ul ul,
    ul ol,
    ol ol,
    ol ul {
      margin-top: 0;
      margin-bottom: 0;
    }

    li > p {
      margin-top: 16px;
    }

    dl {
      padding: 0;
    }

    dl dt {
      padding: 0;
      margin-top: 16px;
      font-size: 1em;
      font-style: italic;
      font-weight: bold;
    }

    dl dd {
      padding: 0 16px;
      margin-bottom: 16px;
    }

    blockquote {
      padding: 0 15px;
      border-left-width: 4px;
      border-left-style: solid;
    }

    blockquote > :first-child {
      margin-top: 0;
    }

    blockquote > :last-child {
      margin-bottom: 0;
    }

    table {
      display: block;
      width: 100%;
      overflow: auto;
      word-break: normal;
      word-break: keep-all;
    }

    table th {
      font-weight: bold;
    }

    table th,
    table td {
      padding: 6px 13px;
      border-width: 1px;
      border-style: solid;
    }

    table tr {
      border-top-width: 1px;
      border-top-style: solid;
    }

    img {
      max-width: 100%;
      box-sizing: content-box;
    }

    code {
      padding: 0;
      padding-top: 0.2em;
      padding-bottom: 0.2em;
      margin: 0;
      font-size: 85%;
      border-radius: 3px;
    }

    code::before,
    code::after {
      letter-spacing: -0.2em;
    }

    pre > code {
      padding: 0;
      margin: 0;
      font-size: 100%;
      word-break: normal;
      white-space: pre;
      background: transparent;
      border: 0;
    }

    .highlight {
      margin-bottom: 16px;
    }

    .highlight pre,
    pre {
      padding: 16px;
      overflow: auto;
      font-size: 85%;
      line-height: 1.45;
      border-radius: 3px;
    }

    .highlight pre {
      margin-bottom: 0;
      word-break: normal;
    }

    pre {
      word-wrap: normal;
    }

    pre code {
      display: inline;
      max-width: initial;
      padding: 0;
      margin: 0;
      overflow: initial;
      line-height: inherit;
      word-wrap: normal;
      background-color: transparent;
      border: 0;
    }

    pre code::before,
    pre code::after {
      content: normal;
    }

    kbd {
      display: inline-block;
      padding: 3px 5px;
      font-size: 11px;
      line-height: 10px;
      vertical-align: middle;
      border-style: solid;
      border-width: 1px;
      border-radius: 3px;
    }

    .pl-c {
      color: #969896;
    }

    .pl-c1,
    .pl-s .pl-v {
      color: #0086b3;
    }

    .pl-e,
    .pl-en {
      color: #795da3;
    }

    .pl-s .pl-s1,
    .pl-smi {
      color: #333333;
    }

    .pl-ent {
      color: #63a35c;
    }

    .pl-k {
      color: #a71d5d;
    }

    .pl-pds,
    .pl-s,
    .pl-s .pl-pse .pl-s1,
    .pl-sr,
    .pl-sr .pl-cce,
    .pl-sr .pl-sra,
    .pl-sr .pl-sre {
      color: #183691;
    }

    .pl-v {
      color: #ed6a43;
    }

    .pl-id {
      color: #b52a1d;
    }

    .pl-ii {
      background-color: #b52a1d;
      color: #f8f8f8;
    }

    .pl-sr .pl-cce {
      color: #63a35c;
      font-weight: bold;
    }

    .pl-ml {
      color: #693a17;
    }

    .pl-mh,
    .pl-mh .pl-en,
    .pl-ms {
      color: #1d3e81;
      font-weight: bold;
    }

    .pl-mq {
      color: #008080;
    }

    .pl-mi {
      color: #333333;
      font-style: italic;
    }

    .pl-mb {
      color: #333333;
      font-weight: bold;
    }

    .pl-md {
      background-color: #ffecec;
      color: #bd2c00;
    }

    .pl-mi1 {
      background-color: #eaffea;
      color: #55a532;
    }

    .pl-mdr {
      color: #795da3;
      font-weight: bold;
    }

    .pl-mo {
      color: #1d3e81;
    }

    kbd {
      display: inline-block;
      padding: 3px 5px;
      font: 11px Consolas, 'Liberation Mono', Menlo, Courier, monospace;
      line-height: 10px;
      vertical-align: middle;
      background-color: #fcfcfc;
      border: solid 1px #cccccc;
      border-bottom-color: #bbbbbb;
      border-radius: 3px;
      box-shadow: inset 0 -1px 0 #bbbbbb;
    }

    .full-commit .btn-outline:not(:disabled):hover {
      color: #4078c0;
      border: 1px solid #4078c0;
    }

    :checked + .radio-label {
      position: relative;
      z-index: 1;
      border-color: #4078c0;
    }

    .octicon {
      display: inline-block;
      vertical-align: text-top;
      fill: currentColor;
    }

    .task-list-item {
      list-style-type: none;
    }

    .task-list-item + .task-list-item {
      margin-top: 3px;
    }

    .task-list-item input {
      margin: 0 0.2em 0.25em -1.6em;
      vertical-align: middle;
    }

    td.markdown-align-center {
      text-align: center;
    }

    td.markdown-align-left {
      text-align: left;
    }

    td.markdown-align-right {
      text-align: right;
    }
  }
}
